Skip to content

[IMP] altinkaya_account: replace KRFRK-based currency diff with FIFO aggregate calculation#281

Open
umyigit wants to merge 4 commits intoaltinkaya-opensource:16.0from
umyigit:kur-farki
Open

[IMP] altinkaya_account: replace KRFRK-based currency diff with FIFO aggregate calculation#281
umyigit wants to merge 4 commits intoaltinkaya-opensource:16.0from
umyigit:kur-farki

Conversation

@umyigit
Copy link
Copy Markdown
Contributor

@umyigit umyigit commented Mar 13, 2026

  • Replace the old KRFRK-sum based currency difference calculation with a FIFO aggregate method that matches payments to invoices chronologically, producing results consistent with manual accounting (ekstre) calculations
  • Fix tax distribution bug where USD and TL amounts were mixed, causing invoice totals to not match the calculated currency difference
  • Map old VAT rates (18%, 8%) to current rates (20%, 10%) so KFARK invoices don't fail on historical invoices

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant